<?php

//echo parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);
$url = "https://hateams-rh8-corpdev.home/onlyofficevirtual/cache/files/441970958_922/output.docx/output.docx?md5=6X40rUIZkazeZIc--y6wLw&expires=1661265906&filename=output.docx";
$str = str_replace("https","http",$url);
echo $str;